﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BLL;

namespace TaoBaoProject.Handlers.QQRelateHandler
{
  /// <summary>
  /// Summary description for DeleteQQRelateHandler
  /// </summary>
  public class DeleteQQRelateHandler : IHttpHandler
  {

    QQRelationBLL qqrelationBLL = new QQRelationBLL();
    public void ProcessRequest(HttpContext context)
    {
      context.Response.ContentType = "text/plain";
      string id = context.Request.Params["id"].ToString();

      if (qqrelationBLL.DeleteQQRelation(id) == 1)
      {
        context.Response.Write("{'success':true}");
        return;
      }

      context.Response.Write("{'success':'false'}");
    }

    public bool IsReusable
    {
      get
      {
        return false;
      }
    }
  }
}